package com.tboss.template.common.secure;

import com.tboss.global.utils.securities.algorithm.AES128;

public class DecryptEncryptForAES128 {
	
	public static void main(String[] args) {
    	//String data = "jdbc:mysql://172.26.130.61:3306/tbossRepo?useUnicode=true&characterEncoding=utf8";
		//String data = "09e784c616645a99e2314ca53e21d4b8d6d1e82be2ac34cdd4831b767c12a659e484fac94f4b14bc4f048b3c8b5c130e01723f91a250d49666e7025a5b0c8721cf643207f077a3b512b5292eb85823fc";
		//String data = "jdbc:oracle:thin:@172.19.245.98:1523:NMSDEV";
    	//String data = "f00c30494dbc4f8845e7cbfef3f55734b089c32b282933e9383b3702596b6faf7491874d4af6115a4e0a7a05a11d4a36";

		String data = "b9da4ee5782982454c59b427457e374f1d7bef02601d0ad240647675fde45c0e";
		
		try {
			/*System.out.println("------------------------------");
			System.out.println("> IN : " + data);
			String encHexString = AES128.encryptStringToHexString(data);
			System.out.println(encHexString);
			System.out.println("< OUT : " + AES128.decryptHexStringToString(encHexString));*/
			
			System.out.println("< OUT : " + AES128.decryptHexStringToString(data));
            
    	} catch(Exception e) {
            System.err.println(e);
        }
	}

}
